// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import BasicLayout from '@/layouts/basic-layout';
import Setting from "@/setting";

const pre = 'community_';

export default {
    path: `${Setting.roterPre}/community`,
    name: 'community',
    header: 'community',
    // redirect: {
    //     name: `${pre}list`
    // },
    component: BasicLayout,
    children: [
        {
            path: 'category',
            name: `${pre}category`,
            meta: {
                auth: ['admin-community-category'],
                title: '逛逛分类'
            },
            component: () => import('@/pages/community/communityClassify/index')
        },
        {
            path: 'topic',
            name: `${pre}topic`,
            meta: {
                auth: ['admin-community-topic'],
                title: '逛逛话题'
            },
            component: () => import('@/pages/community/communityTopic/index')
        },
        {
            path: 'list',
            name: `${pre}list`,
            meta: {
                auth: ['admin-community-list'],
                title: '逛逛内容'
            },
            component: () => import('@/pages/community/communityList/index')
        },
        {
            path: 'reply',
            name: `${pre}reply`,
            meta: {
                auth: ['admin-community-reply'],
                title: '逛逛评论'
            },
            component: () => import('@/pages/community/communityComment/index')
        },
        {
            path: 'config',
            name: `${pre}config`,
            meta: {
                auth: ['admin-Basics-community'],
                title: '逛逛配置'
            },
            props: {
                typeMole: 'invoice'
            },
            component: () => import('@/pages/community/communityConfig/index')
        },
        {
            path: 'apply',
            name: `${pre}apply`,
            meta: {
                auth: ['admin-Basics-community'],
                title: '逛逛配置'
            },
            props: {
                typeMole: 'invoice'
            },
            component: () => import('@/pages/community/communityApply/index')
        }
    ]
};
